#ifndef TG_PAGESETTINGS_H
#define TG_PAGESETTINGS_H

#include <QPrinter>
#include <QRectF>

class TgDocument;

class TgPageSettings
{
public:
    TgPageSettings(TgDocument* document);
    ~TgPageSettings();

    inline TgDocument* document() const;

    QRectF pageRect() const;

    inline QPrinter::Orientation pageOrientation() const;
    void setPageOrientation(QPrinter::Orientation pageOrientation);

private:
    TgDocument* m_document;
    QPrinter::Orientation m_pageOrientation;
};

TgDocument* TgPageSettings::document() const
{
    return m_document;
}

QPrinter::Orientation TgPageSettings::pageOrientation() const
{
    return m_pageOrientation;
}

#endif // TG_PAGESETTINGS_H
